package com.parking.mgr.useraccount.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.parking.mgr.useraccount.model.entity.BasicRoleAssignEntity;
import com.parking.mgr.useraccount.model.param.BasicRoleAssignParam;
import com.parking.mgr.useraccount.model.vo.BasicRoleAssignVO;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
import java.util.List;

/**
 * @ClassName BasicRoleAssignService
 * @Description 角色可分配角色service接口
 * @Auther: shilintao
 * @Date: 2023/5/30
 */
public interface BasicRoleAssignService extends IService<BasicRoleAssignEntity> {

    /**
     * 角色可分配的角色列表
     *
     * @param basicRoleAssignParam
     * @return
     */
    IPage<BasicRoleAssignVO> list(BasicRoleAssignParam basicRoleAssignParam);

    /**
     * 角色可分配的角色列表(启用状态)
     *
     * @param basicRoleAssignParam
     * @return
     */
    IPage<BasicRoleAssignVO> listEnable(BasicRoleAssignParam basicRoleAssignParam);

    /**
     * 添加角色可分配的角色
     *
     * @param basicRoleAssignParam
     */
    void add(BasicRoleAssignParam basicRoleAssignParam);

    /**
     * 删除角色可分配的角色
     *
     * @param ids
     */
    void delete(Collection<String> ids);

    /**
     * 编辑角色可分配的角色
     *
     * @param basicRoleAssignParam
     */
    void edit(BasicRoleAssignParam basicRoleAssignParam);

    /**
     * 根据id获取已分配的角色id
     *
     * @param fkBasicRoleId
     * @return
     */
    List<String> getAssignRoleIdListByRoleId(String fkBasicRoleId);

}
